package com.gitee.cashzhang27.test.boot.activiti;

import com.gitee.cashzhang27.test.boot.activiti.config.JsonpCallbackFilter;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/07/09 10:31
 */
@EnableSwagger2Doc
@SpringBootApplication(exclude = {SecurityAutoConfiguration.class})
public class BootActivitiApplication {

  public static void main(String[] args) {
    SpringApplication.run(BootActivitiApplication.class);
  }

  @Bean
  public JsonpCallbackFilter filter() {
    return new JsonpCallbackFilter();
  }
}
